package com.heima.service.Impl;

import com.heima.dao.UserDao;
import com.heima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public void insert() {
        userDao.insert();
    }

    @Override
    public void update() {
        userDao.update();
    }

    @Override
    public void delete() {
        // System.out.println(1/0);
        userDao.delete();
    }

    @Override
    public void findAll() {
        userDao.findAll();
    }
}
